package cn.edu.cuit.elena.common;

public class FileHandlingException
    extends RuntimeException
{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private String message;
    private Exception rootException;

    public FileHandlingException(String message)
    {
        this.message = message;
    }

    public String getMessage()
    {
        return message + " Root:" + rootException.getClass();
    }

    public FileHandlingException(Exception e)
    {
        rootException = e;
    }
    
    public FileHandlingException(String message,Exception e)
    {
        rootException = e;
        this.message = message;
    }

    public Exception getRootException()
    {
        return rootException;
    }
}
